<div class="admin">
    <div class="tab panel dux-box admin-panel">
        <div class="panel-head"><strong>品牌管理</strong></div>
        <div class="padding border-bottom">
            <a href="JavaScript:void(0);" class="button button-small border-green">管理</a>
            <a href="{:U('add')}" class="button button-small border-green">添加</a>
        </div>
        <div class="fixed-empty"></div>
        <form method="get" action="{:U('index')}" name="formSearch" id="formSearch">
        <table class="table tb-type2">
            <tbody>
                <tr>
                    <td width="8%"><label style="font-weight: bold;">品牌名称：</label></td>
                    <td width="20%"><input class="input" type="text" name="title" value="" /></td>
                    <td width="10%"><button class="button bg-blue" type="submit">查询</button></td>
                    <td width="*"></td>
                </tr>
            </tbody>
        </table>
        </form>
        <div class="fixed-empty"></div>
        <table class="table tb-type2">
            <tbody>
                <tr>
                    <td width="6%"><label for="search_brand_name">首字母索引：</label></td>
                    <td>
                        <a href="{:U('index',array('e_letter'=>A))}">A</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>B))}">B</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>C))}">C</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>D))}">D</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>E))}">E</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>F))}">F</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>G))}">G</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>H))}">H</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>I))}">I</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>J))}">J</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>K))}">K</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>L))}">L</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>M))}">M</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>N))}">N</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>O))}">O</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>P))}">P</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>Q))}">Q</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>R))}">R</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>S))}">S</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>T))}">T</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>U))}">U</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>V))}">V</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>W))}">W</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>X))}">X</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>Y))}">Y</a>&nbsp;&nbsp;
                        <a href="{:U('index',array('e_letter'=>Z))}">Z</a>&nbsp;&nbsp;
                    </td>
                </tr>
            </tbody>
        </table>
        <form name="myform" id="myform" action="" method="post">
            <table class="table tb-type2 nobdb">
                <thead>
                    <tr class="thead">
                        <th width="5%">字母</th>
                        <th width="10%">商品品牌分类</th>
                        <th width="10%">品牌名称</th>
                        <th width="10%">品牌图</th>
                        <th width="*"></th>
                        <th width="6%">状态</th>
                        <th width="10%">操作</th>
                    </tr>
                </thead>
                <tbody>
                <foreach item="v" name="arr" key='k'>
                    <tr>
                        <td>{$v['letter']}</td>
                        <td>{$v['cat_name']}</td>
                        <td class="oGoods" id="{$v['order_id']}">{$v['title']}</td>
                        <td><img src="{$v['img']}" height="30" width="60" /></td>
                        <td></td>
                        <td>
                        <if condition="$v['state'] eq 1">
                            <i class="icon-thumbs-up"></i>
                        <else />
                            <i class="icon-thumbs-down"></i>
                        </if>
                        </td>
                        <td class="w144 align-center">
                            <a class="button bg-blue button-little" href="{:U('Brand/edit',array('id'=>$v['id']))}"><i class="icon-edit"></i>编辑</a>
                            <a class="button bg-red button-little js-del" href="javascript:;" data="{$v['id']}" title="删除"><i class="icon-minus-circle"></i>删除</a>
                        </td>
                    </tr>
                </foreach>
                </tbody>
                <tfoot class="panel-foot">
                    <tr>
                        <td colspan="6"><div class="pages clearfix">{$pages}</div></td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript">
    $('#myform').layer({
        actionUrl: "batchAction",
        deleteUrl: "del",
    });
</script>